<template>
    <el-container>
        <el-header>
            <top-header
                active-link="home"
            ></top-header>
        </el-header>
        <el-container>
            <div style="width: 1000px;margin: 0 auto;">
                <router-link to="/w/register">
                    <el-button type="primary">去注册</el-button>
                </router-link>
                <el-button type="primary" @click="cookieDelete">321</el-button>
            </div>
        </el-container>
    </el-container>
</template>

<script>

    import TopHeader from '../header/TopHeader'

    export default {
        name: "Home",
        components: {
            TopHeader
        },
        data() {
            return {}
        },
        mounted() {
            this.getTest()
        },
        methods: {
            getTest() {
                this.requestAxios.requestWeb("/api/fund/getList.do", {name: "3333"}, (response) => {
                    this.$cookies.set('sid', '111', "7d");
                    console.log(123, response)
                })
            },
            cookieDelete() {
                this.$cookies.remove('sid');
                this.$router.push("/w/register")
            }
        }
    }
</script>

<style scoped>

</style>
